package com.revenant.driver.utils;

import androidx.annotation.NonNull;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Created by Administrator on 2018/8/21.
 */

public class Constants {

    //    public static final String BaseUrl = "http://221.203.29.44:7511/";

    /*测试或者是生产
     * true 生成
     * false 测试
     * */

    public static final boolean isProOrTest = false;
    //    public static final boolean isProOrTest = true;
    public static final String ProUrl = "https://app.cltkj.cn/";
    public static final String TestUrl = "http://app.cltkj.net:8099/";
    public static final String BaseUrl = (isProOrTest) ? ProUrl : TestUrl;

    //    public static final String BaseUrl = "http://app.cltkj.net/";
    //    public static final String BaseUrl = "https://app.cltkj.cn/";
    public static final String Dev_BASE_URL_FunctionOne = BaseUrl;
    public static final String Dev_BASE_URL_FunctionTwo = BaseUrl;
    public static final String Dev_BASE_URL_FunctionThree = BaseUrl;
    public static final String Dev_BASE_URL_FunctionFour = BaseUrl;
    public static final String Dev_BASE_URL_FunctionFive = BaseUrl;

//    public static final String Dev_BASE_URL_FunctionOne = "http://192.168.9.156:8066/";
//    public static final String Dev_BASE_URL_FunctionTwo = "http://221.203.29.44:8100/";

    public static final String Dev_BASE_URL_HuangYanYan = "http://221.203.29.44:8300/";
    public static final String Test_BASE_URL = "http://39.105.148.182/";
    public static final String Prod_BASE_URL = "http://39.105.148.182/";


    /*1登录接口*/
    public static final String User_Login = Dev_BASE_URL_FunctionOne + "userLogin";


    /*2发送短信验证码接口*/
    public static final String User_Send_Verification_Code = Dev_BASE_URL_FunctionOne + "personal/sendSms";


    /*3手机验证码登入*/
    public static final String User_Login_Phone_Verification_ = Dev_BASE_URL_FunctionOne + "mobileLogin";

    /*4忘记密码*/
    public static final String User_Login_Forget_Pas = Dev_BASE_URL_FunctionOne + "forgetPass";


    /*5用户注册*/
    public static final String User_Login_Register = Dev_BASE_URL_FunctionOne + "register";


    /*6获取空车列表（未登入）*/
    public static final String List_Empty_No_Login = Dev_BASE_URL_FunctionTwo + "clt-business-c/selectEmptyCarList";

    /*7上传图片
     */
    public static final String UploadFile = Dev_BASE_URL_FunctionFour + "file/upload";


    /*8货主端实名认证（身份证上传)
     */
    public static final String UploadIdCard = Dev_BASE_URL_FunctionOne + "clt-business-u/authentication/identityAuthentication";


    /*9货主上传营业执照（回显）
     */
    public static final String UploadEnterpriseAuthentication = Dev_BASE_URL_FunctionOne + "clt-business-u/authentication/enterpriseAuthentication";


    /*10货主上传营业执照保存数据库
     */
    public static final String SaveEnterpriseAuthentication = Dev_BASE_URL_FunctionOne + "clt-business-u/authentication/updateEnterprise";

    /*11获取空车列表（以实名）*/
    public static final String List_Empty_No_Authentication = Dev_BASE_URL_FunctionTwo + "clt-business-c/emptyCarList/selectEmptyCarList";


    /*12平台货源（已发布/已关闭）*/
    public static final String Goods_Publish_Or_closed = Dev_BASE_URL_FunctionTwo + "clt-business-c/release/goodsList";

    /*13获取空车详情*/
    public static final String Get_Empty_Details = Dev_BASE_URL_FunctionTwo + "clt-business-c/emptyCarList/selectOneEmptyCar";

    /*14详情平台货源（已发布/已关闭）*/
    public static final String Detail_Goods_Publish_Or_closed = Dev_BASE_URL_FunctionTwo + "clt-business-c/release/goodsOne";

    /*15获取个人信息）*/
    public static final String Get_personal_info = Dev_BASE_URL_FunctionOne + "clt-business-u/personal/personalQuery";


    /*16修改头像*/
    public static final String Update_personal_image = Dev_BASE_URL_FunctionOne + "clt-business-u/personal/updatePhoto";

    /*17编辑状态（发布->关闭）*/
    public static final String Update_state_goods = Dev_BASE_URL_FunctionTwo + "clt-business-c/release/updateStateGoods";

    /*18加入熟车*/
    public static final String Add_shu_car = Dev_BASE_URL_FunctionTwo + "clt-business-c/cooked/joinCookedCar";

    /*19发布货源*/
    public static final String Publish_Goods = Dev_BASE_URL_FunctionTwo + "clt-business-c/release/publishGoods";

    /*20查看熟车群*/
    public static final String Look_ShuChe_Group = Dev_BASE_URL_FunctionTwo + "clt-business-c/group/selectGroupList";

    /*21查看熟车单个熟车群*/
    public static final String Look_ShuChe_ZhiPai = Dev_BASE_URL_FunctionTwo + "clt-business-c/group/selectGroup";

    /*22查看熟车*/
    public static final String Look_ShuChe_Group_Member = Dev_BASE_URL_FunctionTwo + "clt-business-c/group/selectGroup";

    /*24保存熟车群*/
    public static final String Save_ShuChe = Dev_BASE_URL_FunctionTwo + "clt-business-c/group/saveGroup";

    /*24修改熟车群*/
    public static final String Update_ShuChe = Dev_BASE_URL_FunctionTwo + "clt-business-c/group/updateGroupTitle";

    /*25删除熟车群组*/
    public static final String Delete_ShuChe = Dev_BASE_URL_FunctionTwo + "clt-business-c/group/deleteGroup";

    /*26通过手机号查询Id*/
    public static final String Search_Phone = Dev_BASE_URL_FunctionTwo + "clt-business-u/personal/selectMobile";

    /*27 消息列表 */
    public static final String News_list = Dev_BASE_URL_FunctionTwo + "clt-business-c/msg/selectList";

    /*28 消息详情 */
    public static final String News_Detail = Dev_BASE_URL_FunctionTwo + "clt-business-c/msg/findById";

    /*29 订单列表 发票订单*/
//    public static final String Order_list = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/selectAllOrderList";
    public static final String Order_list = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/selectDriverOrderList";
    /*30 开出发票 */
    public static final String Fa_Piao_Write_list = Dev_BASE_URL_FunctionTwo + "clt-business-c/invoice/selectInvoiceList";
    /*31 开出发票详情 */
    public static final String Fa_Piao_Write_Detail = Dev_BASE_URL_FunctionTwo + "clt-business-c/invoice/selecInvoice";


    /*32 发票抬头列表 */
    public static final String Fa_Piao_TaiTou_List = Dev_BASE_URL_FunctionTwo + "clt-business-c/invoice/selectInvoiceTitleList";


    /*33 发票抬头详情 */
    public static final String Fa_Piao_TaiTou_Detail = Dev_BASE_URL_FunctionTwo + "clt-business-c/invoice/selecInvoiceTitle";

    /*34 编辑发票抬头详情 */
    public static final String Fa_Piao_TaiTou_EditDetail = Dev_BASE_URL_FunctionTwo + "clt-business-c/invoice/updateInvoiceTitle";
    /*35 删除票抬头 */
    public static final String Fa_Piao_TaiTou_Delete = Dev_BASE_URL_FunctionTwo + "clt-business-c/invoice/delInvoiceTitle";

    /*36 发票历史列表 */
    public static final String Fa_Piao_History_List = Dev_BASE_URL_FunctionTwo + "clt-business-c/invoice/selectInvoiceList";
    /*37 发票历史列表删除 */
    public static final String Fa_Piao_History_Delete = Dev_BASE_URL_FunctionTwo + "clt-business-c/invoice/delInvoice";
    /*38 发票历史列表详情 */
    public static final String Fa_Piao_History_Detail = Dev_BASE_URL_FunctionTwo + "clt-business-c/invoice/selecInvoice";

    /*39 上传磅单 */
    public static final String Upload_BangDan = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/updateShipperInfo";
    public static final String Upload_BangDan_New = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/updateDriverInfo";

    /*40  支付页面 */
    public static final String Pay_Make_Deal = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/updateAccount";


    /*41  熟车列表 */
    public static final String Shuche_List = Dev_BASE_URL_FunctionTwo + "clt-business-c/cooked/cookedCar";

    /*42  推送货源 */
    public static final String Push_Supply = Dev_BASE_URL_FunctionTwo + "clt-business-c/emptyCarList/pushSupply";

    /*43  查看磅单 */
    public static final String Look_BangDan = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/getBillInfo";

    /*44  删除货源 */
    public static final String Delete_Goods = Dev_BASE_URL_FunctionTwo + "clt-business-c/release/delGoods";


    /*45  输入支付密码 */
    public static final String Pay_Input_Check = Dev_BASE_URL_FunctionThree + "clt-business-f/verifyPwd";

    /*46  支付页面显示 */
    public static final String Pay_Show = Dev_BASE_URL_FunctionThree + "clt-business-f/order";

    /*47  司机经纬度 */
    public static final String Driver_Location_Upload = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/updateTrail";

    /*48  司机查看轨迹 */
    public static final String Driver_Track = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/selectTrail";

    /*49  货主手动确认列表 */
    public static final String Que_RenSiJi_List = Dev_BASE_URL_FunctionTwo + "clt-business-c/release/manualValidationList";

    /*50  货主手动确认*/
    public static final String Que_RenSiJi_Confirm = Dev_BASE_URL_FunctionTwo + "clt-business-c/release/manualValidationDriver";

    /*51  编辑货源*/
    public static final String Edits_Goods = Dev_BASE_URL_FunctionTwo + "clt-business-c/release/updateStateGoods";

    /*52  查看货源*/
    public static final String Look_Goods = Dev_BASE_URL_FunctionTwo + "clt-business-c/release/goodsOne";

    /*53  查看平台货源*/
    public static final String Look_PingTai = Dev_BASE_URL_FunctionTwo + "getAll";

    /*54  查看指派货源*/
    public static final String Look_ZhiPai = Dev_BASE_URL_FunctionTwo + "clt-business-c/goods/getList";


    /*55  查看联网货源*/
    public static final String Look_LianWang = Dev_BASE_URL_FunctionTwo + "findInfomasterList";
    public static final String Look_LianWang_New = Dev_BASE_URL_FunctionTwo + "find/findInfomasterList";

    /*56 司机验证接口*/
    public static final String Driver_YanZheng = Dev_BASE_URL_FunctionOne + "clt-business-u/authentication/driverAuthentication";


    /*57  查看平台货源详情*/
    public static final String Look_PingTai_Detail = Dev_BASE_URL_FunctionTwo + "clt-business-c/goods/findGoodsInfo";


    /*58  查看联网货源详情*/
    public static final String Look_LianWang_Detail = Dev_BASE_URL_FunctionTwo + "clt-business-c/goods/findInfomasterDetail";

    /*59 查看指派源详情*/
    public static final String Driver_ZhiPai_Detail = Dev_BASE_URL_FunctionTwo + "clt-business-c/goods/findGoodsInfo";

    /*60 司机抢单*/
    public static final String Driver_Qiangdan = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/insertOrder";
    public static final String Driver_Qiangdan_New = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/insertNewOrder";
    public static final String Driver_Qiangdan_New0825 = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/0825/insertNewOrder";

    /*61 查询空车列表*/
    public static final String Driver_SearchEmpty = Dev_BASE_URL_FunctionTwo + "clt-business-c/releaseCar/serachEmptyCar";


    /*62 空车管理*/
    public static final String Driver_Car_Manage = Dev_BASE_URL_FunctionTwo + "selectEmptyCarList";
    public static final String Driver_Car_Manage_New = Dev_BASE_URL_FunctionTwo + "selectEmptyCarList";

    /*63 空车删除*/
    public static final String Driver_Car_Delete = Dev_BASE_URL_FunctionTwo + "clt-business-c/releaseCar/deleteEmptyCar";

    /*64 车牌查询*/
    public static final String Driver_CarNo_Search = Dev_BASE_URL_FunctionTwo + "clt-business-c/releaseCar/initEmptyCar";


    /*65 发布空车*/
    public static final String Driver_Add_CarNo = Dev_BASE_URL_FunctionTwo + "clt-business-c/releaseCar/addCarResources";

    /*66 车辆管理*/
    public static final String Driver_Car_VelManage = Dev_BASE_URL_FunctionTwo + "clt-business-c/carAdmin/selectCarAll";
    public static final String Driver_Car_VelManage_New = Dev_BASE_URL_FunctionTwo + "clt-business-c/carAdmin/selectNewCarAll";

    /*67 车辆管理删除*/
    public static final String Driver_Car_VelManage_delete = Dev_BASE_URL_FunctionTwo + "clt-business-c/carAdmin/delCar";
    public static final String Driver_Car_VelManage_delete_New = Dev_BASE_URL_FunctionTwo + "clt-business-c/carAdmin/delNewCar";

    /*68 初始化颜色能源*/
    public static final String Driver_Car_Color = Dev_BASE_URL_FunctionTwo + "clt-business-c/carAdmin/initColAndEn";

    /*69 初始添加车辆*/
    public static final String Driver_Car_Add = Dev_BASE_URL_FunctionTwo + "clt-business-c/carAdmin/addCar";


    /*70  初始添加车辆*/
    public static final String Driver_Cancel_Order = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/delOrder";
    public static final String Driver_Cancel_Order_New = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/delNewOrder";

    /*71  立即抢单车牌选择*/
    public static final String Driver_JustOrder_Order = Dev_BASE_URL_FunctionTwo + "clt-business-c/emptyCarList/selectEmptyCarList";


    /*72  立即抢单车牌选择二*/
    public static final String Driver_JustOrder_Order_Second = Dev_BASE_URL_FunctionTwo + "clt-business-c/releaseCar/serachEmptyCar";
    public static final String Driver_JustOrder_Order_Second_New = Dev_BASE_URL_FunctionTwo + "clt-business-c/releaseCar/serachNewEmptyCar";
    public static final String Driver_JustOrder_Order_Second_New_0825 = Dev_BASE_URL_FunctionTwo + "clt-business-c/releaseCar/0825/serachNewEmptyCar";


    /*72  订单详情*/
    public static final String Driver_JustOrder_Order_Detail = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/selectOneOrder";


    /*73  判断是否上传司机轨迹*/
    public static final String Driver_GetDriverCar_info = Dev_BASE_URL_FunctionTwo + "clt-business-c/order/selectTrailStatus";


    /*74 升级*/
    public static final String Update_Apk = Dev_BASE_URL_FunctionOne + "version/checkVersion";
    public static final String Update_Apk_0825 = Dev_BASE_URL_FunctionOne + "userLogin/version0825/checkVersion";

    /*75找油网登录*/
    public static final String Find_Oil = Dev_BASE_URL_FunctionFive + "clt-business-t/login";

    /*76找油网Url*/
    public static final String Find_Oil_H5 = Dev_BASE_URL_FunctionFive + "clt-business-t/getH5";

//    /*87钱包*/
//    public static final String Money_Wallet = "http://web.cltkj.net/clt-wallet/#/index?accountId=";

    /*88钱包*/
//    public static final String Money_Wallet = "http://web.cltkj.net/clt-wallet/#/index?accountId=";

    /*80钱包*/

    public static final String Money_Wallet_test = "http://web.cltkj.net:8099/clt-wallet/#/index?accountId=";
    public static final String Money_Wallet_pro = "https://front.cltkj.cn/clt-wallet/#/index?accountId=";
    public static final String Money_Wallet = (isProOrTest) ? Money_Wallet_pro : Money_Wallet_test;

    //    public static final String Money_Wallet = "https://front.cltkj.cn/clt-wallet/#/index?accountId=";
    /*多次token名称*/
    public static final String Name_header_token = "token";


    /*78找油网判断登录*/
    public static final String Find_Oil_New_Login = Dev_BASE_URL_FunctionFive + "clt-business-t/login";

    /*76找油网Url申请*/
    public static final String Find_Oil_Apply_For = Dev_BASE_URL_FunctionFive + "clt-business-t/addUser";


    /*77 添加意见反馈*/
    public static final String Complaint_Insert = Dev_BASE_URL_FunctionFive + "clt-business-c/complaint/insert";

    /*78 意见反馈列表*/
    public static final String Complaint_SelectList = Dev_BASE_URL_FunctionFive + "clt-business-c/complaint/selectList";

    /*77 意见反馈详情*/
    public static final String Complaint_FindById = Dev_BASE_URL_FunctionFive + "clt-business-c/complaint/findById";


    /*77 评价*/
    public static final String Comment_Add = Dev_BASE_URL_FunctionFive + "clt-business-c/order/evaluate";

    /*77 评价*/
    public static final String Comment_PerSonal_Show = Dev_BASE_URL_FunctionFive + "clt-business-c/personal/introduction";

    /*78 轨迹上传到中交*/
    public static final String Update_Zhong_Jiao = Dev_BASE_URL_FunctionFive + "clt-business-c/order/updateZetTrail";


    /*79查询邀请码*/
    public static final String SelectInvite = Dev_BASE_URL_FunctionFive + "clt-business-u/personal/selectInvite";

    /*80修改邀请码*/
    public static final String UpdateInvite = Dev_BASE_URL_FunctionFive + "clt-business-u/personal/updateInvite";

    /*81新版资格认证*/
    public static final String NewImproveDriverID = Dev_BASE_URL_FunctionFive + "clt-business-u/authentication/driverAuthenticationByIdentity";

    /*82修改/增加车辆接口（挂车）*/
    public static final String AddCarAndTrailer = Dev_BASE_URL_FunctionFive + "clt-business-c/carAdmin/addCar";
    public static final String AddCarAndTrailerNew = Dev_BASE_URL_FunctionFive + "clt-business-c/carAdmin/addNewCar";
    public static final String AddCarAndTrailerNewUpdate = Dev_BASE_URL_FunctionFive + "clt-business-c/carAdmin/updateNewCar";
    public static final String ImproveCarAndTrailerNewUpdate = Dev_BASE_URL_FunctionFive + "clt-business-u/authentication/updateTbCarTrailer";

    /*82车辆详情接口*/
    public static final String SelectOneCar = Dev_BASE_URL_FunctionFive + "clt-business-c/carAdmin/selectOneCar";
    public static final String SelectOneCarNew = Dev_BASE_URL_FunctionFive + "clt-business-c/carAdmin/selectOneNewCar";

    /*拨打电话*/
    public static final String CallNumber = "0412-8882888";


    /*83车辆详情接口*/
    public static final String Look_NetWork = "core/goods/findInfomasterList";


    /*84协议*/
    public static final String Look_Xieyi = Dev_BASE_URL_FunctionFive + "userLogin/agreement";

    /*统计登入接口*/
    public static final String TongJi_Login = Dev_BASE_URL_FunctionFive + "clt-business-u/log/logLoginInfo";


    /*初始化省市区*/
    public static final String Area_Provice = Dev_BASE_URL_FunctionFive + "clt-business-c/init/selectAllProvince";
    public static final String Area_City = Dev_BASE_URL_FunctionFive + "clt-business-c/init/selectAllCity";
    public static final String Area_Area = Dev_BASE_URL_FunctionFive + "clt-business-c/init/selectAllArea";


    /*司机合同确认接口*/
    public static final String Driver_Agreen_Con = Dev_BASE_URL_FunctionFive + "clt-business-c/order/driverAgree";

    public static final String Search_Status_XieYi = Dev_BASE_URL_FunctionFive + "clt-business-c/order/selectStatus";


    /*协议&&合同*/
    public static final String Pop_HeTong = Dev_BASE_URL_FunctionFive + "clt-business-c/order/popAgreeMent";


    /*交通,榜单*/
    public static final String UpdateDriverJtbInfo = Dev_BASE_URL_FunctionFive + "clt-business-c/order/updateDriverJtbInfo";
    public static final String UpdateDriverJtbInfoNew = Dev_BASE_URL_FunctionFive + "clt-business-c/order/updateDriverJtbNewInfo";

    /*交通,上传*/
    public static final String UpdateJtbStatus = Dev_BASE_URL_FunctionFive + "clt-business-c/order/updateJtbStatus";

    /*交通,上传。失败*/
    public static final String UpdateJtbGoodsInfo = Dev_BASE_URL_FunctionFive + "clt-business-c/order/updateJtbGoodsInfo";
    /*获取驾驶证从业资格信息*/
    public static final String CheckcreditQuery = Dev_BASE_URL_FunctionFive + "clt-business-u/personal/creditQuery";
    public static final List<String> popMessage = Arrays.asList(
            "您已经成功上传装货磅单，确定要上传卸货磅单吗",
            "您的车辆已经审核成功,已经可以抢单,你确定还要继续编辑车辆嘛?",
            "您的货源还未发布成功，确定要放弃本次发货吗？",
            "您还未实名认证成功，会导致无法抢单等功能，确定要返回吗？"
    );


    /*统计登入接口*/
    public static final String Improve_Car_Head_Num_Beans = Dev_BASE_URL_FunctionFive + "clt-business-u/personal/selectTrailer";

    public static final String Warning_Text = "您不能抢单，因为您的抢单车辆挂车证件没有完善。 ";
    public static final String Warning_Mine_HeadText = "请选择 要完善的 头车牌照号 进行完善 挂车手续 !。 去 完 善 ";


    public static final String updateAuroraEquipment = Dev_BASE_URL_FunctionTwo + "clt-business-u/personal/updateAuroraEquipment";

    public static final String alerttexta = "您的车辆正在审核中，如长时间未审核请拨打审核热线";

    public static final String alerttextb = "0412-8882888";

    public static final String alerttextc = "也可点击审核热线联系客服";
}
